package gui;

import interfaces.Command;

import java.awt.event.ActionListener;

import javax.swing.JMenuItem;

import mediator.Mediator;

public class PopupItemMakeOffer extends JMenuItem implements Command {

	Mediator med;
	
	public PopupItemMakeOffer (ActionListener act, Mediator md) {
		super("Make Offer");
		addActionListener(act);
		med = md;
		
		med.registerPopupItemMakeOffer(this);
	}
	
	@Override
	public void execute() {
		med.clickPopupItemMakeOffer();
	}

}